<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html" %>
<%@ taglib uri="http://amc.af.mil/portal-el" prefix="portal" %>
<%@ taglib uri="http://amc.af.mil/radtaglibrary" prefix="rad" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head>
    <title>Add Maintenance Entry</title>
</head>

<body>
<rad:useBean id="equipmentItemViewHelper"/>

<div id="portal-left-bar">
    <jsp:include page="../navigation/navigationMenu.jsp"/>
</div>

<c:set var="itemId" value="${param.itemId}" />
<%--<c:set var="itemId" value="${requestScope.itemId}" scope="request"/>--%>
<%--<c:out value="${requestScope.itemId}"/>--%>

<div id="portal-content">
    <portal:box title="Maintenance Entry" style="width:800px">
        <html:form method="post"
                   action="/maintenanceEntry/create.do?itemId=${equipmentItemViewHelper.item.id}">
            <p>
                <label for="entryText">Detail</label><br/>
                <html:textarea property="entryText" cols="80"/>
            </p>

            <p>
                <html:submit title="Add Entry"/>
            </p>
        </html:form>
    </portal:box>
</div>
</body>
</html>